<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitereview
 * @copyright  Copyright 2012-2013 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: index.tpl 6590 2013-04-01 00:00:00Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
 ?>

<div id="profile_options">
  <?php
		echo $this->navigation()
      ->menu()
      ->setContainer($this->gutterNavigation)
      ->setUlClass('navigation sitereviews_gutter_options')
      ->render();
  ?>
</div>

<script>
function changeLinkInSmoothbox(){
     var smoothbox = $('smoothbox_window');
     if (!smoothbox)  return;
     var content = $('global_page_sitereview-index-view');
     console.log(content);
     var links = content.getElements('a');
     for(var i = 0; i < links.length; i++){
        var a = links[i];
        var href = a.get('href');
        if (href!= null && !href.contains('javascript:void(0)')){
             a.addClass('smoothbox');
        }
       
        if (href!= null && !href.contains('/format/smoothbox') && !href.contains('javascript:void(0)') ){
            a.set('href',href+'/format/smoothbox');
            
        }
        
     }   
     Smoothbox.bind();
}
window.addEvent('domready',function(){
    changeLinkInSmoothbox();
});
</script>